.TH MKNOD 1 "GNU File Utilities" "FSF" \" -*- nroff -*-
.SH NAME
mknod \- make special files
.SH SYNOPSIS
.B mknod
[options] filename {bcu} major minor
.br
.B mknod
[options] filename p
.br
Options:
.br
[\-m mode] [\-\-mode=mode] [\-\-help] [\-\-version]
.SH DESCRIPTION
This documentation is no longer being maintained and may be inaccurate
or incomplete.  The Texinfo documentation is now the authoritative source.
.PP
This manual page
documents the GNU version of
.BR mknod .
.B mknod
creates a FIFO, character special file, or block special file
with the given file name.  By default, the mode of
created files is 0666 minus the bits set in the umask.
.PP
The argument after
.I filename
specifies the type of file to make:
.nf
p for a FIFO
b for a block (buffered) special file
c or u for a character (unbuffered) special file
.fi
.PP
When making a block or character special file, the major and minor
device numbers must be given after the file type.
.SS OPTIONS
.TP
.I "\-m, \-\-mode mode"
Set the mode of created files to
.IR mode ,
which is symbolic as in chmod and uses the default mode as the point of
departure.
.TP
.I "\-\-help"
Print a usage message on standard output and exit successfully.
.TP
.I "\-\-version"
Print version information on standard output then exit successfully.
